package com.icloud.common.database.enums;

import lombok.Getter;

@Getter
public enum AttentionEnum {
    FOLLOWED("FOLLOWED"), // 已关注
    EACH("EACH"); // 已互关

    private final String code;

    AttentionEnum(String code){
        this.code = code;
    }

    public static AttentionEnum byCode(String code) {
        for (AttentionEnum e: AttentionEnum.values()) {
            if (e.code.equalsIgnoreCase(code)) {
                return e;
            }
        }
        return null;
    }
}
